package com.kaigejava.factorypattern.simplefactorypattern;

/**
 * Created by kaigejava on 2019/8/23.
 * 简单工厂类测试
 */
public class SimpleFactoryPatternTest {

    public static void main(String[] args) {
        System.out.println("*******欢迎来到司小司面馆*******");
        INoodlesInterface noodlesInterface = NoodlesSimpleFactory
                .makeNoodlesByMenuType(NoodlesSimpleFactory.NOODLES_TYPE_4);
        noodlesInterface.noodlesdescription();
        //根据面类型
        INoodlesInterface noodles = NoodlesSimpleFactory
                .makeNoodlesByNoodlesName("biangbiang面");
        noodles.noodlesdescription();
    }
}
